<?php
/*
Template Name: Contest Template
*/
?>
<?php get_header() ?>
  <div id="container">
		<div id="content">
<?php get_sidebar('page-top'); ?>

<?php the_post() ?>
			<div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class() ?>">
    			<?php thematic_postheader(); ?>
				<div class="entry-content">
<?php the_content(); ?>

<?php if(is_pod_page()){pods_content();} ?>
      <?php
        //if(is_user_logged_in()){
        //echo '<b>Comment your answers in the following Box:</b>';
        //echo '<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=184562168245609&amp;xfbml=1"></script><fb:comments xid="144168869348" numposts="50" width="550" publish_feed="true"></fb:comments>';
        //}
        
        //else{
        //echo '<a rel="nofollow" href="/wordpress/wp-login.php">Login to Answer</a>';
        //}
      ?>
     
<?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number'); ?>



<?php edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>'); 
echo "<br />";
?>
Share on <span class="ref_links"><a title="Share on Twitter" target="_blank" href="http://twitter.com/home?status=Great prizes to be won at Buzzr, Play the Cric-Whiz Contest happening throughout the ICC World Cup 2011 http://bit.ly/gyH5Ku #cricwhizcontest "><img src="<?php echo get_bloginfo('wpurl').'/wp-content/pfiles/images/twitter.png'; ?>" /></a> and <a title="Share on Facebook" target="_blank" href="http://www.facebook.com/share.php?u=http://buzzr.in/cricket-whiz-quiz-buzzr-contest-for-icc-world-cup-2011"><img src="<?php echo get_bloginfo('wpurl').'/wp-content/pfiles/images/facebook.png'; ?>" /></a></span>

<?php if(is_user_logged_in()){
thematic_comments_template();
}else{

echo '<div style="margin: 0 auto;">';
echo '<a rel="nofollow" class="simplemodal-login" href="/wordpress/wp-login.php">Login to Answer</a><br />';
/*
echo '<b>OR</b><br />';
jfb_output_facebook_btn();
jfb_output_facebook_init();
jfb_output_facebook_callback();
*/
echo '</div><br /><br />';
} ?>
				</div>
			</div><!-- .post -->



<?php //get_sidebar('page-bottom') ?>

		</div><!-- #content -->
	</div><!-- #container -->

<?php thematic_sidebar() ?>

<?php get_footer() ?>
